//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop
//---------------------------------------------------------------------------
USEFORM("motion.cpp", FormMotion);
USEFORM("LIPMCommunicator.cpp", FormLIPM);
USEFORM("comm_set.cpp", FormCommSet);
USEFORM("pose.cpp", FormPose);
USEFORM("UpdatingRecords.cpp", FormUpdatingRecords);
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
        try
        {
                 Application->Initialize();
                 Application->CreateForm(__classid(TFormMotion), &FormMotion);
		Application->CreateForm(__classid(TFormCommSet), &FormCommSet);
		Application->CreateForm(__classid(TFormPose), &FormPose);
		Application->CreateForm(__classid(TFormLIPM), &FormLIPM);
		Application->CreateForm(__classid(TFormUpdatingRecords), &FormUpdatingRecords);
		Application->Run();
        }
				catch (Exception &exception)
        {
                 Application->ShowException(&exception);
        }
        catch (...)
        {
                 try
                 {
                         throw Exception("");
                 }
                 catch (Exception &exception)
                 {
                         Application->ShowException(&exception);
                 }
        }
        return 0;
}
//---------------------------------------------------------------------------
